
clear 
set more off
cd "$Mydirectory1/1_DataSources/NLSYW68/"

import delimited ./RawData/altmotherocc_Rage14.csv, case(preserve) clear 

label define vlR0039100 1 "FATHER AND MOTHER"  2 "FATHER AND STEP-MOTHER"  3 "MOTHER AND STEP-FATHER"  4 "FATHER"  5 "MOTHER"  6 "SOME OTHER ADULT MALE RELATIVE"  7 "SOME OTHER ADULT FEMALE RELATIVE"  8 "SOME OTHER ARRANGEMENT"  9 "ON OWN" 
label values R0039100 vlR0039100

label define vlR0697100 -999 "-999 TO -6: <0"  0 "0 TO 195: PROFESSIONAL, TECHNICAL, AND KINDRED WORKERS"  250 "250 TO 290: MANAGERS, OFFICIALS, AND PROPRIETORS, EXCEPT FARM"  301 "301 TO 370: CLERICAL AND KINDRED WORKERS"  380 "380 TO 395: SALES WORKERS"  401 "401 TO 545: CRAFTSMEN, FOREMEN, AND KINDRED WORKERS"  601 "601 TO 775: OPERATIVES AND KINDRED WORKERS (INCLUDES MINE WORKERS)"  801 "801 TO 804: PRIVATE HOUSEHOLD WORKERS"  810 "810 TO 890: SERVICE WORKERS, EXCEPT PRIVATE HOUSEHOLD WORKERS"  200 "200 TO 222: FARMERS AND FARM MANAGERS"  901 "901 TO 905: FARM LABORS AND FOREMAN"  960 "960 TO 985: LABORERS, EXCEPT FARM AND MINE WORKERS"  555 "555: MEMBERS OF THE ARMED FORCES"  995 "995: OCCUPATION NOT REPORTED"  999 "999: DON'T KNOW" 
label values R0697100 vlR0697100

  rename R0000100 R0000100_1968 
  rename R0039100 R0039100_1968 
  rename R0697100 R0697100_1978 

  sort R0000100_1968
  save ./RawData/altmotherocc_Rage14.dta, replace
  
